package cn.fz.ssedemo.exception;


import cn.fz.ssedemo.domain.vo.CodeEnum;

public class ServerException extends RuntimeException{
    // 全局错误码
    private String code;

    // 错误提示
    private String message;

    public ServerException() {
    }

    public ServerException(String message) {
        super(message);
    }

    public ServerException(CodeEnum codeEnum) {
        this.code = codeEnum.code;
        this.message = codeEnum.message;
    }

    public ServerException(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
